img=$1

if [ -z "$img" ]; then
  echo "功能: 给镜像打tag，并推送"
  echo "用法: docker-push.sh 镜像名:版本号"
  exit 1
fi

harbor="thc-test:5000"

echo "镜像推送到: $harbor/$img"

docker tag  $img $harbor/$img
docker push $harbor/$img

echo "镜像推送完成"
